package org.jeecg.modules.parameter.biz.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.parameter.api.entity.SimStation;
import org.jeecg.modules.parameter.api.vo.station.StationOptionVo;
import org.jeecg.modules.parameter.biz.mapper.SimStationMapper;
import org.jeecg.modules.parameter.biz.service.SimStationService;
import org.jeecg.modules.parameter.common.biz.service.impl.FzServiceImpl;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author P-202207340195
 */

@Slf4j
@Primary
@Service
public class SimStationServiceImpl extends FzServiceImpl<SimStationMapper, SimStation> implements SimStationService {
    @Resource
    private SimStationMapper mapper;


    @Override
    public List<SimStation> getStationByLineId(String lineId) {
        return mapper.getStationByLineId(lineId);
    }
    @Override
    public List<StationOptionVo> getStationOptions(String lineId) {
        return mapper.getStationOptionByLineId(lineId);
    }

    @Override
    public List<SimStation> getAllStation() {
        return mapper.getAllStation();
    }

    @Override
    public SimStation queryById(String id) {
        return mapper.queryById(id);
    }
}
